🎖️GitЯра🎖️
Commit ada16f4f5f2e859624ad8588ff07cdbff945aac0
Parents : cf0a7cd
Author : Austin <vidplace7@gmail.com>
Signature : Signature validation error
Date : 2026-05-12T21:04:52-04:00
Committer : GitHub <noreply@github.com>
Date : 2026-05-12T20:04:52-05:00
Flatpak: Add Maven/Gradle mirror URLs (#5433)
Co-authored-by: James Rich <2199651+jamesarich@users.noreply.github.com>
Changes
Diff
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 6b37a0d71d..408c1f9eab 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -420,7 +420,20 @@ jobs:
- name: Combine Flatpak source files
run: >
- jq -s 'add | unique_by(.dest + "/" + .["dest-filename"] + "/" + (.["only-arches"] | tostring))' flatpak-multisrc/*/*.json
+ jq -s 'add | unique_by(.dest + "/" + .["dest-filename"] + "/" + (.["only-arches"] | tostring))'
+ flatpak-multisrc/*/*.json
+ > flatpak-sources-combined.json
+
+ - name: Add mirror-urls for Maven Central
+ run: >
+ jq '[.[] | if (.url | test("^https://repo\\.maven\\.apache\\.org/maven2/")) then . + {"mirror-urls": [(.url | sub("^https://repo\\.maven\\.apache\\.org/maven2/"; "https://maven-central.storage-download.googleapis.com/maven2/"))]} else . end]'
+ flatpak-sources-combined.json
+ > flatpak-sources-central.json
+
+ - name: Add mirror-urls for Gradle Plugin Portal
+ run: >
+ jq '[.[] | if (.url | test("^https://plugins\\.gradle\\.org/m2/")) then . + {"mirror-urls": [(.url | sub("^https://plugins\\.gradle\\.org/m2/"; "https://maven.aliyun.com/repository/gradle-plugin/"))]} else . end]'
+ flatpak-sources-central.json
> flatpak-sources.json
- name: Upload combined Flatpak source artifact
Served by rngit 1.5.4 - Generated in 0.12s